<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title></title>
<link rel="stylesheet" href="css/result.css" />
<link rel="stylesheet" href="css/index.css" />
<script type="text/javascript" charset="UTF-8" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="js/main.js"></script>

<script type="text/javascript" src="PlugIns/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="PlugIns/ueditor/ueditor.all.min.js"></script>

<style type="text/css">
* {input { outline:none;
	
}
}
</style>
</head>

<body style="background-color: #eee;">
	<c:if test="${empty userInfo }">
		<jsp:forward page="../../jsp/index.jsp"></jsp:forward>
	</c:if> 
	
	<div class="main_div">
		<div style="height: 20px;"></div>
		<div class="background_color addBugInfo03142106" style="height: 100%">
			<div style="height: 50px;"></div>
			<div style="width: 800px;margin: auto;">
				<form action="bugInfo/addBugInfo" method="post">
					<textarea class="bug-title" name="description" rows="10" cols="110">
				 	 	BUG问题描述
				 	</textarea>
					<div style="height: 30px"></div>
					
					<script type="text/plain" id="solution" name="solution"></script>

					<div style="height: 50px"></div>
					<div style="width: 80px;border: 1px solid red;margin: auto;">
						<input type="submit" value="添加BUG" />
					</div>
				</form>
				<div style="height: 150px;"></div>

			</div>

		</div>

		<div style="height: 200px;"></div>
	</div>

	<script type="text/javascript">
		$(function() {
			$(".bug-title").on("focus", function() {
				var title = $(".bug-title").val().trim();
				if ("BUG问题描述" == title) {
					$(this).empty();
				}
			});

			$(".bug-title").on("blur", function() {
				var title = $(".bug-title").val().trim();
				if (title.length == 0) {
					$(this).val("BUG问题描述");
				}
			});

		});

		/* 百度富文本区域 */
		var ue = UE.getEditor('solution', {
			toolbars : [ [ 'undo', //撤销
			'redo', //重做
			'selectall', //全选
			'bold', //加粗
			'fontfamily', //字体
			'fontsize', //字号
			'forecolor', //字体颜色
			'backcolor', //背景色
			'indent', //首行缩进
			'italic', //斜体
			'formatmatch', //格式刷
			'removeformat', //清除格式
			'pasteplain', //纯文本粘贴模式
			'touppercase', //字母大写
			'tolowercase', //字母小写
			'date', //日期
			'time', //时间
			'underline', //下划线
			'strikethrough', //删除线
			'subscript', //下标
			'justifyleft', //居左对齐
			'justifyright', //居右对齐
			'justifycenter', //居中对齐
			'justifyjustify', //两端对齐
			'insertorderedlist', //有序列表
			'insertunorderedlist', //无序列表
			'insertimage', //多图上传
			'cleardoc', //清空文档
			'fullscreen', //全屏
			] ],
			initialFrameWidth : 800,//富文本宽度
			initialFrameHeight : 300,//富文本高度
		});
	</script>
</body>

</html>